const workSpace = (request) => {
	return {
		view_workbenchConfig_page(query = {}) {
			return request(`/admin/workbenchConfig/page`, {
				method: 'post',
				data: query,
			})
		},
		view_workbenchConfig_edit(query = {}) {
			return request(`/admin/workbenchConfig/edit`, {
				method: 'post',
				data: query,
			})
		},
		view_workbenchConfig_del(query = {}) {
			return request(`/admin/workbenchConfig/del`, {
				method: 'post',
				data: {
					batchesDel: query,
				},
			})
		},
		saveWorkSpace(query = {}) {
			return request(`/admin/workbenchConfig/add`, {
				method: 'post',
				data: query,
			})
		},
		//统计服务对象
		serviceObjectStatistics(query = {}) {
			return request(`/bussiness/statistics/serviceObject`, {
				method: 'post',
				data: query,
			})
		},
		//养老服务设施
		serviceFacilityStatistics(query = {}) {
			return request(`/bussiness/statistics/serviceFacility`, {
				method: 'post',
				data: query,
			})
		},
		//养老机构
		serviceOrgBaseSOStatistics(query = {}) {
			return request(`/bussiness/statistics/serviceOrgBase`, {
				method: 'post',
				data: query,
			})
		},
		//养老从业人员
		dpFPStatistics(query = {}) {
			return request(`/bussiness/dpFoundationPractitioners/statistics`, {
				method: 'post',
				data: query,
			})
		},
		//统计养老行业服务商
		dpSPStatistics(query = {}) {
			return request(`/bussiness/dpServiceProvider/statistics`, {
				method: 'post',
				data: query,
			})
		},
		//养老服务机构
		dpSOStatistics(query = {}) {
			return request(`/bussiness/dpServiceOrgBase/statistics`, {
				method: 'post',
				data: query,
			})
		},
		//养老服务组织
		view_dpServiceHome_statistics(query = {}) {
			return request(`/bussiness/dpServiceOrgHome/statistics`, {
				method: 'post',
				data: query,
			})
		},
	}
}
export default ({ request }: any) => ({
	...workSpace(request),
})
